package com.zhang.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author ZhangJunqi
 * @Date 2022/2/6 -13:08
 */
@Data
@Component
@PropertySource (value ="classpath:personal.properties")
public class Person01 {
    @Value ("${name}")
    private String name;
}
